pkglib_LTLIBRARIES=libcvs.la
libcvs_la_SOURCES=Libcvs.h 											\
				  Libcvs.hh	  										\
	     		  Libcvs.tab.hh										\
		 		  Libcvs.tab.cc										\
		 		  lex.Libcvs.cc										\
				  Libcvs.cpp 										\
				  $(top_srcdir)/include/RepoTemplate/RepoTemplate.h \
				  $(top_srcdir)/include/utils/utils.h								

Libcvs.tab.hh Libcvs.tab.cc: Libcvs.yy
	$(YACC) Libcvs.yy

lex.Libcvs.cc: Libcvs.ll
	$(LEX)  Libcvs.ll


libcvs_la_CPPFLAGS = -I$(top_srcdir)/include						\
					 -I$(top_srcdir)/lib							\
					  $(LIBXMLXX_CFLAGS)	

# TEST PROGRAM

bin_PROGRAMS=cvstest
cvstest_SOURCES=libcvs.la main.cpp

cvstest_CPPFLAGS= $(LIBCONFIGXX_CFLAGS)						\
				  $(LIBXMLXX_CFLAGS)						\
				  $(LIBGLOG_CFLAGS)							\
				  $(LIBGFLAGS_CFLAGS)						\
				  -I$(top_srcdir)/lib/						\
				  -I$(top_srcdir)/include					\
				  -DDATADIR=\"$(abs_top_srcdir)/share\"
				  
cvstest_LDADD= 	-lfl										\
				libcvs.la									\
				$(top_srcdir)/lib/utils/libutils.la			\
				$(LIBCONFIGXX_LIBS) 						\
				$(LIBXMLXX_LIBS) 							\
				$(LIBGLOG_LIBS)								\
				$(LIBGFLAGS_LIBS)							\
				$(top_srcdir)/lib/dotwriter/libdotwriter.la

CLEANFILES = *~  Libcvs.tab.cc Libcvs.tab.hh location.hh position.hh stack.hh lex.Libcvs.cc
